<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%--
<ul class="menu">
    <c:choose>

        <c:when test="${!registeredUserBean.loggedIn}">
            <ol>
                <li><a href="/EvIn/index.faces">Log In</a></li>

            </ol>
        </c:when>

        <c:otherwise>
            <li>${registeredUserBean.registeredUser.firstName}</li>
        </c:otherwise>

    </c:choose>

</ul>
/--%>

<c:choose >
	<c:when test="${registeredUserBean.loggedIn}">
		<div >
			<ul class="menu">
				<li><a href="/EvIn/user/home.faces">Home</a></li>
			</ul>
			<hr/>
			<ul class="menu">
				<li><a href="/EvIn/event/event_list.faces">Events</a></li>
				<li><a href="/EvIn/user/contacts.faces">Contacts</a></li>
			</ul>
		</div>

	</c:when>
<%--
	<c:otherwise>
		<div >
			<ul class="menu">
				<li><a href="/EvIn/index.faces">Login</a></li>
				<li><a href="/EvIn/register.faces">Register</a></li>
			</ul>
		</div>
	</c:otherwise>
	--%>
</c:choose>

